//
//  Config.h
//  TestForReactiveCocoa
//
//  Created by liangshangjia on 16/2/17.
//  Copyright © 2016年 Sami-Network. All rights reserved.
//

#ifndef Config_h
#define Config_h

//七牛
#define QINIU_PREFIX @"http://7xj9od.com2.z0.glb.qiniucdn.com/"
#define QINIU_SIZELIMIT_URL(imgURLStr,imageSize) [NSURL URLWithString:[NSString stringWithFormat:@"%@%@?imageMogr2/size-limit/%dk!",QINIU_PREFIX,imgURLStr,imageSize]]
#define QINIU_WIDTHLIMIT_URL(imgURLStr,width)  [NSURL URLWithString:[NSString stringWithFormat:@"%@%@?imageMogr2/thumbnail/%.2fx",QINIU_PREFIX,imgURLStr,width]]


//尺寸相关
#define UISCREEN_BOUNDS [[UIScreen mainScreen] bounds]
#define UISCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define UISCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define UISCREEN_SCALE ((NSInteger)[UIScreen mainScreen].scale == 3 ? 1.104 : 1)
#define UISIZE_CONVERT(px) (UISCREEN_SCALE *((px)/2.0f))//像素换算


//字体
#define DEFAULT_TEXT_FONT(px) /*[UIFont systemFontOfSize:UISIZE_CONVERT(px)]*/[UIFont fontWithName:@"Heiti SC" size:UISIZE_CONVERT(px)]
#define BOLD_TEXT_FONT(px)  [DEFAULT_TEXT_FONT(px) fontWithBold]
//[UIFont fontWithName:@"STHeitiTC-Medium" size:UISIZE_CONVERT(px)]



#endif /* Config_h */


